package org.lzy.shop.activity

import android.text.TextUtils

import org.lzy.shop.R
import org.lzy.shop.base.BaseMvvmActivity
import org.lzy.shop.databinding.ActivityChangemobileBinding
import org.lzy.shop.viewmodel.MineModel


/**
 * 换手机号(未做)
 */
class ChangeMobileActivity: BaseMvvmActivity<ActivityChangemobileBinding, MineModel>({ ActivityChangemobileBinding.inflate(it) }) {


    override fun initView() {
        setTitleText(getResString(R.string.change_mobile))
    }


    override fun initData() {

    }

    override fun requestData() {

    }

    override fun allClick() {
        binding.bindMobileBtn.setOnClickListener{
            val username = binding.actLoginNewEtAccount.text.toString()
            val password = binding.actLoginNewEtPsw.text.toString()
            if (TextUtils.isEmpty(username)) {
                showToast(getResString(R.string.input_mobile))
            } else if (TextUtils.isEmpty(password)) {
                showToast(getResString(R.string.input_code))
            }else{

            }

        }

    }
}